package org.tis.tools.model.log.vo;

import lombok.Data;
import org.tis.tools.model.log.LogDataChange;

/**
 * 记录日志差异值一次的改变拼接为一个对象
 * Created by chenchao
 * Created on 2018/10/29 14:23
 */
@Data
public class LogDataChangeMessage {

    private String physicalName;
    private String logicName;
    private String oldValue;
    private String newValue;

    public LogDataChangeMessage(){}

    public LogDataChangeMessage(LogDataChange logDataChange){
        this.physicalName = logDataChange.getPhysicalName();
        this.logicName = logDataChange.getLogicName();
        this.oldValue = logDataChange.getOldValue();
        this.newValue = logDataChange.getNewValue();
    }
}
